package com.shawn.spring.boot.flowable.service.impl;

import com.shawn.spring.boot.flowable.bo.Role;
import com.shawn.spring.boot.flowable.dao.RoleDao;
import com.shawn.spring.boot.flowable.mapper.RoleEntityBOMapper;
import com.shawn.spring.boot.flowable.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RoleServiceImpl implements RoleService {

  @Autowired private RoleDao roleDao;

  @Autowired private RoleEntityBOMapper roleEntityBOMapper;

  @Override
  public void createRole(Role role) {
    roleDao.insert(roleEntityBOMapper.toRoleEntity(role));
  }
}
